<?php
/**
 *  +---------------------------------------------------------------------------+
 *  | Copyright (c) 2008-2009 CCBox.net All rights reserved. 
 *  +---------------------------------------------------------------------------+
 *  | Licensed under the Apache License, Version 2.0 (the 'License');
 *  | Or you can  visit http://www.ccbox.net/ for more info.
 *  +---------------------------------------------------------------------------+
 *  | Author: KentaTse < ccbox_net@163.com >
 *  +---------------------------------------------------------------------------+
 * 
 *  +---------------------------------------------------------------------------+
 *  | Build time: 2008-12-1 15:35
 *  | Docname:  TaskViewModel.class.php
 *  | Remark:
 *  +---------------------------------------------------------------------------+
*/

class TaskListViewModel extends Model
{//任务视图模块

	protected $viewModel = true;
//task：id  name  thetype  os  remark  readable  appointto  submitter  postdate moddate planstart  planend  runstart  runend  isopen  
//user：id  account  nickname  passwd  verify  email  remark  create_time  update_time  status  
	protected $viewFields = array(
		'Task'=>array('id','name','thetype','os','remark','readable','appointto','submitter','postdate','moddate','planstart','planend','runstart','runend','isopen'),
		'User'=>array('nickname'=>'nickname'),
		);
	protected $viewCondition = array("Task.submitter" => array('eqf',"User.id"));
}
 
?>